Unable to delete Storage Space "Access is Denied" 0x00000005

Hi there,

Storage pool with two storage spaces created using Windows 8 Release Preview and then ported into Windows 8 RTM. I'm now trying to delete one of the storages spaces and getting this access is denied error message.

Any suggestions would be much appreciated.


August 28th, 2012 11:14pm

Take the onwership of the drives and see if it helps.
Free Windows Admin Tool Kit Click here and download it now
August 30th, 2012 10:36am

It is possible something is using the storage space.  Try closing apps and trying to delete the storage space again.

If that does not work, then you can try the below PowerShell commands.  The first command makes the storage space inaccessible to all apps, forcing them to stop using the storage space, and the second command deletes the storage space.

Disconnect-VirtualDisk -FriendlyName name_of_the_space

Remove-VirtualDisk -FriendlyName name_of_the_space

-Darren

August 30th, 2012 9:17pm

same problem here...

I'm on Win8 MSDN final.

Can't remove a storage pool and can't add a disk.

Have full access to the storage pool and no program is accessing the disk.

Strange: I am able to change drive letter and drive label.

  • Proposed as answer by PappaT Wednesday, July 09, 2014 11:37 PM
Free Windows Admin Tool Kit Click here and download it now
August 31st, 2012 4:44pm

btw...

Disconnect-VirtualDisk -FriendlyName name_of_the_space

is also not working

August 31st, 2012 4:55pm

I solved the problem for me.

Again... No file lock on the storage pool and no application is doing anything with this virtual disk. But it's not possible to remove it from storage spaces. This has nothing to do with ownership of the drive, access rights or an access of a process. I had a clean windows setup with no programs installed. I'd say that this is a bug of windows!

Anyway here is my solution:

* Opened an explorer with "Computer" open.

* Opened "computer managment" and selected the storage list.

* I selected the storage pool which I wanted to delete but wasn't able to.

* Right click -> format... I think I have chosen NTFS but it's not so important...

* Warning that the drive is in use (what a nonsense) -> yes yes ok

* waited a few seconds until the bar with the free space disappeared at the "Computer" folder for this drive (on the explorer).

* stopped the format process. some error msgs that this couldn't be canceled and then he said he couldn't finish... (wtf ;))

* then back to the storage spaces overview... manage storage spaces... delete storage pool... pool disappeared... finish

hope this helps someone

Free Windows Admin Tool Kit Click here and download it now
August 31st, 2012 6:05pm

This helped me. I had the same issue.

Thank you.

August 10th, 2014 11:24pm

it worked for me as well
Free Windows Admin Tool Kit Click here and download it now
December 30th, 2014 1:40pm

I solved the problem for me.

Again... No file lock on the storage pool and no application is doing anything with this virtual disk. But it's not possible to remove it from storage spaces. This has nothing to do with ownership of the drive, access rights or an access of a process. I had a clean windows setup with no programs installed. I'd say that this is a bug of windows!

Anyway here is my solution:

* Opened an explorer with "Computer" open.
* Opened "computer managment" and selected the storage list.
* I selected the storage pool which I wanted to delete but wasn't able to.
* Right click -> format... I think I have chosen NTFS but it's not so important...

This helped me with the same "Access Denied" error.  My confidence in Storage Spaces was shaken by the inability to do this very simple task without error.

In my case however, I did not use the Format choice, but Delete Volume instead.  Had the same effect.

Thanks for putting me on the right path.

January 11th, 2015 7:53pm

I know this is a little late to the show but I ran across this error myself while trying out Storage Spaces...doing the format thing didn't work but what I did find work was the following....

In computer managment ----- Disk management

Select the SS drive you want to delete and make it offline.

Then go back to storage spaces manager and you can now delete.

Free Windows Admin Tool Kit Click here and download it now
February 25th, 2015 10:35pm

Worked for me too - thanks! I agree this is bug. Storage spaces seem surprisingly brittle to me. And if client computer backups fills up - you're done. All you can do is abandon backups, remove computers and then join them back. Awful.
March 14th, 2015 1:59pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics